﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;

namespace Jemgine.Data
{
    public class MapHeader
    {
        public Vector2 Gravity { get; set; }

        [System.ComponentModel.Editor(typeof(TextureEditor), typeof(System.Drawing.Design.UITypeEditor))]
        public String DefaultTexture { get; set; }

        public float GravityForce { get; set; }

        [System.ComponentModel.Editor(typeof(TextureEditor), typeof(System.Drawing.Design.UITypeEditor))]
        public String BackgroundTexture { get; set; }
        
        public Vector2 BackgroundScale { get; set; }

        [ContentSerializer(Optional = true)]
        public Vector3 AmbientLighting { get; set; }

        public MapHeader()
        {
            Gravity = new Vector2(0, -1);
            GravityForce = 160;
            BackgroundScale = Vector2.One;
            AmbientLighting = Vector3.Zero;
        }

        public MapHeader(MapHeader other)
        {
            Gravity = other.Gravity;
            GravityForce = other.GravityForce;
            BackgroundTexture = other.BackgroundTexture;
            BackgroundScale = other.BackgroundScale;
            AmbientLighting = other.AmbientLighting;
        }
    }
}
